#batch api